﻿using PortableVersion.Core.SourceControl;

namespace PortableVersion.Core.FileSystem.Services
{
    public class DiffApplicationResult
    {
        public Diff<FileItem> Diff { get; private set;}
        public bool Successful { get { return Exception == null; } }
        public SourceControlException Exception { get; private set; }
        public DiffApplicationResult(Diff<FileItem> diff, SourceControlException exception)
        {
            Diff = diff;
            Exception = exception;
        }
    }
}